package com.java.mywxmp.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.java.mywxmp.dao.ReplyDao;
import com.java.mywxmp.entity.Reply;
import com.java.mywxmp.service.ReplyService;
import com.java.mywxmp.utils.PageUtils;
import com.java.mywxmp.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;

@Service("replyService")
public class ReplyServiceImpl extends ServiceImpl<ReplyDao, Reply> implements ReplyService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<Reply> page = this.page(
                new Query<Reply>().getPage(params),
                // 拼接查询条件
                new LambdaQueryWrapper<Reply>()
        );

        return new PageUtils(page);
    }

}